package client.comm.baoding

import android.content.Context
import android.util.AttributeSet
import android.view.View

class SelectBgView @JvmOverloads constructor(
    context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : View(context, attrs, defStyleAttr) {



    override fun setSelected(selected: Boolean) {

        if(selected){
            setBackgroundResource(R.color.main_color)
        }else{
            setBackgroundResource(R.color.tranplant)
        }
        super.setSelected(selected)
    }
}